const connection = require('./config/database');
 
class User {
  // 查询用户
  static getUsers(callback) {
    connection.query('SELECT * FROM users', (error, results) => {
      if (error) throw error;
      callback(null, results);
    });
  }
 
  // 其他数据库操作...
}
 
module.exports = User;